package imper.graphic;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

public class ButtonImage extends Button implements DrawableClickable
{
	protected Image _img;
	
	public ButtonImage(int pX,int pY,Image pImg)
	{
		super(pX, pY,  pImg.getWidth(), pImg.getHeight());
		_img = pImg;
	}

	@Override
	public void draw(GameContainer gc, Graphics g) throws SlickException
	{
		_img.draw(_X1, _Y1);		
	}
}
